package com.sservice.service.service;

import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.OutputStream;
import java.util.List;
import java.util.Map;

/**
 * 导出操作
 * Created by suweiming on 2017/10/5.
 */
public interface ExportService {
    public OutputStream exportExcel(String hql, List<Map> datas, ServletOutputStream outputStream);

    /**
     * 设置响应头
     * @param response
     * @param request
     * @param fileName 下载文件名称
     */
    public void setResponseHeader(HttpServletResponse response, HttpServletRequest request, String fileName);

}
